import Axios from "@/utils/request";
import type { HttpResponse } from '@/api/types';

// task
export default {
  // 任务列表
  getTaskList(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/maintain/maintain/task-list', params)
  },
  // 任务列表统计数据
  getTaskListStatic(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/maintain/maintain/task-list-static', params)
  },
  // 任务列表状态操作
  getTaskHandle(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/maintain/maintain/task-handle', params)
  },
  // 任务标签列表
  getTaskTagList(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/maintain/maintain/task-tag-list', params)
  },
  // 贡献，引流海报
  getCreateShareImage(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/maintain/maintain/create-share-image', params)
  },
  // 任务自定义表单详情数据 (标准)
  getAdminRecordDetail(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/admin/record/detail', params)
  },
  // 任务自定义表单详情数据（快捷）
  getAdminInvestigateDetail(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/admin/questionnaire/clone/detail', params)
  },
  // 编辑记录
  getAdminRecordUpdate(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/admin/record/update', params)
  },
  // 编辑记录-添加标签列表
  getTagUpdate(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/admin/get-tag', params)
  },
  // 创建记录
  getAdminRecordAdd(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/admin/record/add', params)
  },
  // 匹配管理-列表数据
  getTaskMatchList(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/maintain/maintain/task-match-list', params)
  },
  // 匹配管理-标签数据
  getTagList(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/maintain/maintain/tag-list', params)
  },
  // 匹配管理-推送
  getTaskMatch42(params: any): Promise<HttpResponse> {
    return Axios.post('http://hxbfb.bailingkeji.com/maintain/maintain/task-match-42', params)
  },
}

